package cn.com.se.多线程.ConcurrentUtils.CompletionServiceTest;

import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Description TODO
 * @Author:hu.rl
 * @Date:2019-04-25 14:09
 * @Version 1.0
 **/
public class CompletionTask implements Callable {
    private ConcurrentHashMap map = new ConcurrentHashMap();

    public CompletionTask(ConcurrentHashMap map) {
        this.map = map;
    }

    @Override
    public Object call() throws Exception {
        // 次数处理任务
        Thread.sleep(3000);
        return map;
    }
}
